<!-- TinyMCE -->
<script type="text/javascript" src="<?php echo base_url();?>scripts/tiny_mce/tiny_mce.js"></script>

<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		//theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		//theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		maxwidth: "100%",
        height: "400",
	});
</script>
<!-- /TinyMCE -->

<!-- start user-form  -->
<?php $article = $article[0];?>
<form method="POST">
<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
<tr>
	<th valign="top">Penulis:</th>
	<td><?php echo $article['writer'];?></td>
	<td></td>
</tr>
<tr>
	<th valign="top">Judul:</th>
	<td><input type="text" class="inp-form" name="judul" value="<?php echo $article['judul']?>"/></td>
</tr>
<tr>
	<th valign="top">Kategori:</th>
	<td style="z-index: 1;">	
		<select name="kategori" class="styledselect_form_1">
			<option value="0" <?php echo ($article['kategori'] == '0') ? "selected=selected" : "" ;?>>Tidak Berkategori</option>
			<option value="1" <?php echo ($article['kategori'] == '1') ? "selected=selected" : "" ;?>>Berita</option>
			<option value="2" <?php echo ($article['kategori'] == '2') ? "selected=selected" : "" ;?>>Pengumuman</option>
		</select>
	</td>
</tr>
<tr>
	<th valign="top">Isi:</th>
	<td style="z-index: 2;"><textarea name="isi" id="elm1"><?php echo $article['isi'];?></textarea></td>
	<td></td>
</tr> 
<tr>
	<th valign="top">Status:</th>
	<td>	
		<select name="status" class="styledselect_form_1">
			<option value="public" <?php echo ($article['status'] == 'public') ? "selected=selected" : "" ;?>>Umum</option>
			<option value="private" <?php echo ($article['status'] == 'private') ? "selected=selected" : "" ;?>>Hanya Anggota</option>
		</select>
	</td>
</tr>
<tr>
	<th>&nbsp;</th>
	<td valign="top">
		<input type="submit" name="edit_artikel" value="" class="form-submit" />
		<input type="reset" value="" class="form-reset"  />
	</td>
	<td></td>
</tr>
</table>
</form>
<div class="clear">&nbsp;</div>
<!-- end user-form  -->